Skip to content
This repository has been archived by the owner on Sep 1, 2020. It is now read-only.

Latest commit

 

History

History
7 lines (6 loc) · 201 Bytes

6.1.6 - swoole_lock->trylock_read.md

File metadata and controls

7 lines (6 loc) · 201 Bytes

swoole_lock->trylock_read

加锁。此方法与lock_read相同,但是非阻塞的。

$lock->trylock_read();

调用会立即返回,必须检测返回值以确定是否拿到了锁。